﻿@model ForgotPasswordViewModel

@{
	ViewBag.Title = @Html.GetGlobalResource("PagesTitles", "ForgotPassword");
    Layout = "~/Views/Shared/_AccountLayout.cshtml";
}

<h2>@Html.GetGlobalResource("PagesTitles", "ForgotPassword")</h2>

@if (Model.IsPasswordSend) {
	<br />
	<label>@Html.GetLocalResource("PasswordSend")</label>
	<br/>
	<br/>
	<input type="button" value="OK" onclick="@string.Format("window.location.href='{0}';", Url.Action("Index", "Home"))"/>
}
else {
	@Html.ValidationSummary()
	using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post)) {
		<br/>
		<label>@Html.GetLocalResource("Email")</label>
		@Html.TextBoxFor(x => x.Email)
		<br />
		<br />
		<input type="submit" value="@Html.GetLocalResource("Reset")"/>
	}
}